﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.IO;

namespace Logic
{
    public static class Log
    {


        public static void Write(String str)
        {
            String logFilePath = HttpContext.Current.Server.MapPath("/log.txt");
            // silently fail
            try
            {
                using (var file = new StreamWriter(logFilePath, true))
                {
                    file.Write(str + "\n");
                }
            }
            catch
            {
            }
        }
    }
}
